﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
namespace _0712502_0712504_DesignPatternGame
{
    public class NuclearBombItem : ProductItem
    {
        public NuclearBombItem()
        {
            this.SpriteModel = new MySprite(GameResourceContainer.ImageManager.nuclearBombImages, 
                                            new Rectangle(0, 0, 54, 54), new Vector2(27, 27));
            this.ID = IDProduct.NuclearBomb;
            this.RectCollisionInside = new Rectangle(0, 0, 54, 54);
            this.RectCollisionOutside = new Rectangle(0, 0, 54, 54);
            this.Size = new Rectangle(0, 0, 54, 54);
            this.RotationAngle = 0;
        }

        public override void ItemUpdate(GameTime gameTime)
        {
            this.RotationAngle += 0.1f;
            base.ItemUpdate(gameTime);
        }
    }
}
